//
//  NSString+Encryption.h
//  KKCategory
//
//  Created by liaozhenming on 16/5/17.
//  Copyright © 2016年 liaozhenming. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonCryptor.h>
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonHMAC.h>

@interface NSString (Encryption)

//  MD5加密
- (NSString*)kk_md5String;

//  base64编码
- (NSData*)kk_base64Encoded;

//  basse64解码
+ (instancetype)kk_base64EncodedWithData:(NSData*)base64Data;

@end
